//
//  HYSideslipViewController.h
//  LEVE
//
//  Created by 上官惠阳 on 2017/2/14.
//  Copyright © 2017年 dashuju. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface HYSideslipViewController : UIViewController
{
@private
    UIViewController * leftControl;
    UIViewController * mainControl;
    UIViewController * righControl;

    UIImageView * imgBackground;

    CGFloat scalef;
}


//滑动速度系数-建议在0.5-1之间。默认为0.5
@property (assign,nonatomic) CGFloat speedf;

//是否允许点击视图恢复视图位置。默认为yes
@property (strong) UITapGestureRecognizer *sideslipTapGes;

//初始化
-(instancetype)initWithLeftView:(UIViewController *)LeftView
                    andMainView:(UIViewController *)MainView
                   andRightView:(UIViewController *)RighView
             andBackgroundImage:(UIImage *)image;


//恢复位置
-(void)showMainView;

//显示左视图
-(void)showLeftView;

//显示右视图
-(void)showRighView;

@end
